﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using VIT.DataHelper.DataAccess;

namespace VIT.Wedding.Modules.ColorNStyle
{
    public partial class ColorNStyle : VIT.Web.UI.VITModule
    {
        protected string ColorNStyleModuleName
        {
            get { return Params["ColorNStyleModuleName"]; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (ColorNStyleModuleName == "Colors")
            {
                rptColor.DataSource = VITData.GetQuery<Product_Color>();
                rptColor.DataBind();
            }
            else if (ColorNStyleModuleName == "Styles")
            {
                rptStyle.DataSource = VITData.GetQuery<Product_Style>();
                rptStyle.DataBind();
            }
            
        }
    }
}